package com.mes.biz.service.impl;

import org.springframework.stereotype.Service;
import com.mes.common.core.service.BaseServiceImpl;
import com.mes.biz.mapper.BizPurchaseDetailMapper;
import com.mes.biz.domain.BizPurchaseDetail;
import com.mes.biz.service.BizPurchaseDetailService;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 采购单明细Service业务层处理
 * @author wy
 * @email wy
 * @date 2023-05-19
 */
@Service
@Transactional(readOnly = true)
public class BizPurchaseDetailServiceImpl extends BaseServiceImpl<BizPurchaseDetailMapper, BizPurchaseDetail> implements BizPurchaseDetailService {

    @Resource
    private BizPurchaseDetailMapper bizPurchaseDetailMapper;

    @Override
    public List<BizPurchaseDetail> getBizPurchaseDetailByPurchaseCode(String purchaseCode) {
        return bizPurchaseDetailMapper.getBizPurchaseDetailByPurchaseCode(purchaseCode);
    }

    @Override
    public int deleteBizPurchaseDetailByIds(String[] ids,String delFlag) {
        return bizPurchaseDetailMapper.deleteBizPurchaseDetailByIds(ids,delFlag);
    }
}
